﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using IDAL;
using Model;

namespace BLL
{
    public class PCBAJointingCheck : BaseService<PCBAJointingCheckInfo>
    {
        private static readonly IPCBAJointingCheck dal = DALFactory.DataAccess.CreatePCBAJointingCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<PCBAJointingCheckInfo> GetPCBAJointingChecksbySN(string pCBSN)
        {
            return dal.GetPCBAJointingChecksbySN(pCBSN);
        }

        public IList<PCBAJointingCheckInfo> GetPCBAJointingChecksbyProductSN(string productSN)
        {
            return dal.GetPCBAJointingChecksbyProductSN(productSN);
        }

        public IList<PCBAJointingCheckInfo> GetPCBAJointingChecksbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetPCBAJointingChecksbyDT(starttime, stoptime);
        }
    }
}
